home *** CD-ROM | disk | FTP | other *** search
/ Just Call Me Internet / Just Call Me Internet.iso / com / computer / casio_st / prog_fx / oisac2 / l_5560.txt < prev    next >
Text File  |  1994-03-01  |  524b  |  13 lines

  1. 5 ONERRORGOTO500
  2. 10 MODE8:DIM:ERASEa:DIMa(4):a$="a b r x1y1":c$=CHR$(5)
  3. 20 CLS:PRINT"(x-a)ý+(y-b)ý=rý,(x1,y1)";
  4. 30 FORi=0 TO4
  5. 40 LOCATE0,1:PRINTc$;MID$(a$,1+2*i,(SGN(i-2.5)+1)/2+1);"=";a(i);"?";:INPUT@42;a(i):LOCATE0,0
  6. 45 IFi=2 AND a(2)<0 THEN40
  7. 50 NEXT:LOCATE0,1:PRINTc$;
  8. 60 w=(a(3)-a(0))^2+(a(4)-a(1))^2-a(2)^2:IFw<0 THEN100 ELSEPRINTc$;"l:length =";SQR(w);:w$=INPUT$(1,@):GOTO30
  9. 100 LOCATE0,1:PRINTc$;"not found";:w$=INPUT$(1,@):GOTO20
  10. 500 IFERR=1 THENCLS:ONERRORGOTO0
  11. 510 IFERL=40 THENRESUME40
  12. 520 RESUME100
  13.